from tkinter import *

from MainPage import *


class admin(object):
    def __init__(self, master=None):
        self.root = master  # 定义内部变量root
        self.root.geometry('%dx%d' % (650, 400))
        self.name = StringVar()
        self.password = StringVar()
        self.createPage()

    def createPage(self):
        manage_name = self.name
        manage_password = self.password
        self.login(self, manage_name, manage_password)
